package com.zz.ecommerce.declareManage.importB2CDeclareDirect.exception;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by admin on 2016/4/1.
 */
@Service
public class DirectExceptionService {

    @Autowired
    private DirectExceptionDao directExceptionDao;

    @Transactional(readOnly = false)
    public boolean declare(String id) {
        return directExceptionDao.declare(id) && directExceptionDao.changeStatus(id);
    }
}
